package com.sdy.dcsb.biz.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * IP授权记录信息表
 * </p>
 *
 * @author fb
 * @since 2019-09-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence(value = "SEQ_ESB_SERVICE_CONSUMER", clazz = Integer.class)
public class EsbServiceConsumer extends BaseModel {
    private static final long serialVersionUID = 1L;

    /**
     * 主键,id
     */
   @TableId(value = "id",type = IdType.INPUT)
    private Integer id;

    /**
     * 服务编码
     */
    private String servcode;

    /**
     * ipId
     */
    private Integer ipid;

    /**
     * 状态。1:有权限,0:无权限
     */
    private String status;

    /**
     * 首次授权时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date createTime;

    /**
     * 权限变更时间
     */
    @JsonFormat(pattern = DATETIME_FORMAT)
    private Date updateTime;

}
